package com.vast.admin.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel(value="com.vast.admin.entity.ApplyMsgUser")
@Data
@TableName(value = "apply_msg_user")
public class ApplyMsgUser {
     @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="null")
    private Long id;

    @TableField(value = "customer_id")
    @ApiModelProperty(value="null")
    private Long customerId;

    /**
     * 姓名
     */
    @TableField(value = "name")
    @ApiModelProperty(value="姓名")
    private String name;

    /**
     * 电话
     */
    @TableField(value = "mobile")
    @ApiModelProperty(value="电话")
    private String mobile;

    /**
     * 身份证
     */
    @TableField(value = "identity")
    @ApiModelProperty(value="身份证")
    private String identity;

    /**
     * 微信ID
     */
    @TableField(value = "wx_id")
    @ApiModelProperty(value="微信ID")
    private String wxId;

    /**
     * 创建者
     */
    @TableField(value = "create_by")
    @ApiModelProperty(value="创建者")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="创建时间")
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public static final String COL_CUSTOMER_ID = "customer_id";

    public static final String COL_NAME = "name";

    public static final String COL_MOBILE = "mobile";

    public static final String COL_IDENTITY = "identity";

    public static final String COL_WX_ID = "wx_id";

    public static final String COL_CREATE_BY = "create_by";

    public static final String COL_CREATE_TIME = "create_time";
}